﻿@model MarcatelHD.Models.tblSoluciones

@{
    ViewBag.Title = "Editar";
}

<h2>Editar</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Solucion</legend>

    @*    <div class="editor-label">
            @Html.LabelFor(model => model.SolucionId)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.SolucionId)
            @Html.ValidationMessageFor(model => model.SolucionId)
        </div>*@

        @Html.HiddenFor(model => model.SolucionId)

        <div class="editor-label">
            @Html.LabelFor(model => model.Causa)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Causa)
            @Html.ValidationMessageFor(model => model.Causa)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Descripcion)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Descripcion)
            @Html.ValidationMessageFor(model => model.Descripcion)
        </div>

        <p>
            <input type="submit" value="Guardar" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Regresar a la lista", "Index")
</div>
